﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="UpdateMe.aspx.cs" Inherits="HotelManagement.UserManagementModule.UpdateMe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style29
    {
        font-size: large;
    }
     .style30
     {
         text-decoration: underline;
     }
     .style31
     {
         width: 100%;
     }
     .style35
    {
        width: 329px;
    }
    .style36
    {
        width: 262px;
    }
    .style37
    {
        width: 329px;
        height: 3px;
    }
    .style38
    {
        width: 242px;
        height: 3px;
    }
    .style39
    {
        height: 3px;
    }
    #Reset1
    {
        width: 119px;
        height: 42px;
    }
        .style40
        {
            width: 171px;
        }
        .style41
        {
            width: 329px;
            height: 20px;
        }
        .style42
        {
            width: 242px;
            height: 20px;
        }
        .style43
        {
            height: 20px;
        }
        .style44
        {
            width: 242px;
        }
 </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <strong><span class="style29">Welcome Admin</span></strong>_<strong><asp:Label ID="Label3" runat="server" CssClass="style29"></asp:Label>
    </strong>
    <hr style="color: #FFFFFF" />
    <h3 style="width: 854px" class="style29">
        Personal Information Update</h3>
    <p class="style30" style="width: 854px">
        Career Information</p>
    <table class="style31" border="1">
        <tr>
            <td class="style35">
                Staff ID:</td>
            <td>
                <asp:Label ID="Label4" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style35">
                UserName:</td>
            <td>
                <asp:Label ID="Label5" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style35">
                Role in Hotel:</td>
            <td>
                <asp:Label ID="Label6" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <p class="style30">
        Personal Information</p>
    <table class="style31" border="1">
        <tr>
            <td class="style40">
                First Name:</td>
            <td class="style36">
                            <asp:TextBox ID="TextBox1" runat="server" Width="221px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style40">
                Last Name:</td>
            <td class="style36">
                            <asp:TextBox ID="TextBox2" runat="server" Width="221px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style40">
                Gender:</td>
            <td class="style36">
                <asp:Label ID="Label9" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style40">
                Date of Birth:</td>
            <td class="style36">
                <asp:Label ID="Label10" runat="server"></asp:Label>
            </td>
        </tr>
    </table>
    <p class="style30">
        Contact Information</p>
    <table class="style31" border="1">
        <tr>
            <td class="style35">
                Mobile Number:</td>
            <td class="style44">
                            <asp:TextBox ID="TextBox10" runat="server" Width="221px"></asp:TextBox>
            </td>
            <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="TextBox10" ErrorMessage="Phone number must have 8 digits!" 
                    ForeColor="Red" SetFocusOnError="True" ValidationExpression="\d{8}"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style41">
                Home phone Number:</td>
            <td class="style42">
                            <asp:TextBox ID="TextBox11" runat="server" Width="221px"></asp:TextBox>
            </td>
            <td class="style43">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                    ControlToValidate="TextBox11" ErrorMessage="Phone number must have 8 digits!" 
                    ForeColor="Red" SetFocusOnError="True" ValidationExpression="\d{8}"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style35">
                Email:</td>
            <td class="style44">
                            <asp:TextBox ID="TextBox5" runat="server" Width="221px"></asp:TextBox>
            </td>
            <td>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                    ControlToValidate="TextBox5" ErrorMessage="Email is in wrong format!" 
                    ForeColor="Red" SetFocusOnError="True" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="style35">
                House/Block No.:</td>
            <td class="style44" style="font-weight: 700">
                            <asp:TextBox ID="TextBox6" runat="server" Width="221px"></asp:TextBox>
            </td>
            <td style="font-weight: 700">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style35">
                Unit No.:</td>
            <td class="style44">
                            <asp:TextBox ID="TextBox7" runat="server" Width="221px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style35">
                Street Name:</td>
            <td class="style44">
                            <asp:TextBox ID="TextBox8" runat="server" Width="221px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style35">
                Country:</td>
            <td class="style44">
                <asp:Label ID="Label11" runat="server"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style37">
                Postal Code:</td>
            <td class="style38">
                            <asp:TextBox ID="TextBox9" runat="server" Width="221px"></asp:TextBox>
            </td>
            <td class="style39">
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                    ControlToValidate="TextBox9" ErrorMessage="Postal Code must have 6 digits!" 
                    ForeColor="Red" SetFocusOnError="True" ValidationExpression="\d{6}"></asp:RegularExpressionValidator>
            </td>
        </tr>
    </table>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label12" runat="server" 
        Font-Bold="True" Font-Size="Large" ForeColor="Red" style="font-size: large" 
        Text="Update Failed! Please Try Again!" Visible="False"></asp:Label>
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button1" runat="server" ForeColor="Black" Height="42px" 
                   Text="Save Changes" Width="119px" onclick="Button1_Click"  />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="Button2" runat="server" ForeColor="Black" Height="42px" 
                   Text="Cancel" Width="119px" 
        PostBackUrl="~/UserManagementModule/MySetting.aspx"  />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input id="Reset1" type="reset" value="Reset" /><br />
</asp:Content>
